Handlers
A
handler
is a collection of statements that AppleScript executes in response to a command or error message.
This chapter describes handlers in the following sections:
-
Script Applications
describes script applications and how to create them. Sections throughout this chapter refer to script applications.
-
About Subroutines
describes subroutines, which are handlers for user-defined commands, and provides a general overview of how they work.
-
Defining and Calling Subroutines
provides a detailed description of how you work with subroutines, including examples that demonstrate labeled and positional parameters.
-
Command Handlers
describes routines you write to handle application or system commands.
-
Scope of Script Variables and Properties
describes the scope, or range, over which AppleScript recognizes a declared identifier within a script.
For information on writing error handlers, see
Try Statements.
© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)